﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace University.Workshop.Model
{
    [Table("CutSupply")]
    public class CutSupply
    {
        [Key]
        public long CutSupplyID { get; set; }
        [ForeignKey("User")]
        public string ReaderID { get; set; }
        [ForeignKey("Kardex")]
        public int KardexID { get; set; }
        public DateTime SystemDate { get; set; }
        public double CurrentMeasurerRead { get; set; }
        public double PreviousMeasurerRead { get; set; }
        public int State { get; set; } // 0: nuevo, 1: solicitud corte, 2: cortado, 3: cobrado

        public virtual Kardex Kardex { get; set; }
        public virtual User User { get; set; }

    }
}
